package com.hzqy.web.ac.epg;

import com.hzqy.service.epg.AcSignServiceBean;
import com.hzqy.service.epg.AcSilverServiceBean;
import com.hzqy.web.login.SessionKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/")
public class AcSilverAction {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	@Resource
	private AcSilverServiceBean acSilverServiceBean;

	/**
	 * 查询兑换码list
	 */
	@RequestMapping("/getSilverCardNum")
	@ResponseBody
	public Object silverCardNum(HttpSession session,String activityId) {
		String userId = (String) session.getAttribute(SessionKey.SESSION_SERVERID);
		return acSilverServiceBean.selectSilverList(userId);
	}
}
